package com.mayi.zds.service;

import com.mayi.zds.dao.param.OrderQueryParam;
import com.mayi.zds.entity.Order;

import java.util.List;

/**
 * @ClassName OrderDAO
 * @Description TODO
 * @Author zhong
 * @Date 2019/12/24 0024 下午 4:20
 * @Version 1.0
 */
public interface OrderService {

    /**
     * 增加订单
     * @Author zhong
     * @Date 2019/12/24 16:42:12
     * @param order
     * @return void
     **/
    public void add(Order order);

    /**
     * 取消订单
     * @Author zhong
     * @Date 2019/12/25 22:37:36
     * @param orderId 订单id
     * @return void
     **/
    public void cancle(String orderId);


    /**
     * 完成订单
     * @Author zhong
     * @Date 2019/12/26 15:58:57
     * @param orderId 订单id
     * @return void
     **/
    public void finish(String orderId);


    /**
     * 根据订单ID查询订单
     * @Author zhong
     * @Date 2019/12/25 22:39:24
     * @param orderId 订单ID
     * @return com.mayi.zds.entity.Order
     **/
    public Order getById(String orderId);

    /**
     *
     * //TODO 根据条件查询订单
     * @Author zhong
     * @Date 2019/12/24 16:35:27
     * @param param 查询参数
     * @return java.util.List<com.mayi.zds.entity.Order>
     **/
    public List<Order> getListByConditions(OrderQueryParam param);
}
